package handler;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import data.AngajatiData;
import windows.Ferestre;

public class MyActionListener implements ActionListener {

	private Ferestre fereastra;

	public MyActionListener(Ferestre ferestre) {
		fereastra = ferestre;
	}

	public void actionPerformed(ActionEvent e) {

		String actiune = e.getActionCommand();
		AngajatiData angajati = fereastra.getAngajatiData();
		Handler hand = new Handler();
		hand.actionPerformed(actiune, angajati, fereastra);

	}

}
